package com.lineage.server.serverpackets;

public class S_War extends ServerBasePacket {
  private byte[] _byte;
  
  public S_War(int type, String clan_name1, String clan_name2) {
    this._byte = null;
    buildPacket(type, clan_name1, clan_name2);
  }
  
  private void buildPacket(int type, String clan_name1, String clan_name2) {
    writeC(84);
    writeC(type);
    writeS(clan_name1);
    writeS(clan_name2);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
